package facade.subsystem;

import java.util.Random;

public class Memory {
    public boolean check(){
        System.out.println("内存开始自检!");
        Random random = new Random();
        int memoryInfo = random.nextInt(1000);
        //假设内存出问题的概率为1/1000。
        return memoryInfo < 999;
    }
}
